<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(a,b,c){
           return a+b+c
        }
        var arr = [1,2,3]
        console.log(fn(...arr))
        var arr1 = [...arr,4]
        console.log(arr)
        console.log(arr1)

        fn(2,3,4,5,6)
        function fn(...args){
            console.log(args)
        }

        var obj = {
            namr : 'zhang',
            agr : 18
        }
        var obj1 = {...obj}
        console.log(obj1)

    </script>
</body>
</html>